#ifndef __CURLBASE_H_
#define _CURLBASE_H_

#include<curl/curl.h>
#include"Public.h"

struct curl_slist *Headers(char *Header, ...);
CURL *CurlInit();
gchar *HttpValuePost(char *url, GString *value);

gchar *HttpJsonGet(char *url);
gchar *HttpJsonPost(char *url, GString *json_value);

gchar *HttpFilePost(char *url, char *file_form_mos, char *file_name, GHashTable *table);
gboolean HttpGetResourceByJson(char *ResourceUrl, GString *json_buffer, gchar *OutFileName);

gchar *SetPostBody(char *firstkey, ...);
#endif
